#!/usr/bin/env python3   
# -*- coding: utf-8 -*-
#time:2018/9/12 14:41
#version:1.0
#_author_:jtst


from  application import app,manager

from flask_script import Server

import www   #  蓝图


## web server
manager.add_command('runserver',Server(host='0.0.0.0',port=app.config['SERVER_PORT'],use_debugger=True,use_reloader=True))


def main():
    manager.run()


if __name__ == '__main__':
    try:
        import sys
        sys.exit(main())
    except Exception as e:
        import traceback

        traceback.print_exc()   # 打印错误。
